import request from '@/utils/request'
// --------  用户优惠卷 --------

let BASE_ADDRESS = '/base/config'

//  分页查询
export const getConfigListApi = (params) => {
    return request({
        url: `${BASE_ADDRESS}/listIndex`,
        method: "get",
        params
    })
}

//  添加
export const getConfigAddApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/addIndex`,
        method: "post",
        data
    })
}
// 修改
export const getConfigEditApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/editIndex`,
        method: "put",
        data
    })
}

//id查询
export const getConfigGetInfoApi = (params) => {
    return request({
        url: `${BASE_ADDRESS}/getInfoIndex`,
        method: "get",
        params
    })
}


//刪除卡卷
export const getConfigRemoveApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/removeIndex/${data}`,
        method: "delete",

    })
}